summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-22 05:25:22 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-22 05:25:22 +0200
commit1d4f813c6ab59ffe41ccd9be27786aeab344a1f4 (patch)
tree405c02a28ecf2d9a4ae8bdeb5ae5d88720283c40
parentcommon,qt-config: Remove usage of forward_list (diff)
downloadyuzu-1d4f813c6ab59ffe41ccd9be27786aeab344a1f4.tar
yuzu-1d4f813c6ab59ffe41ccd9be27786aeab344a1f4.tar.gz
yuzu-1d4f813c6ab59ffe41ccd9be27786aeab344a1f4.tar.bz2
yuzu-1d4f813c6ab59ffe41ccd9be27786aeab344a1f4.tar.lz
yuzu-1d4f813c6ab59ffe41ccd9be27786aeab344a1f4.tar.xz
yuzu-1d4f813c6ab59ffe41ccd9be27786aeab344a1f4.tar.zst
yuzu-1d4f813c6ab59ffe41ccd9be27786aeab344a1f4.zip
-rw-r--r--src/yuzu/configuration/configure_audio.cpp2
-rw-r--r--src/yuzu/configuration/configure_cpu.cpp2
-rw-r--r--src/yuzu/configuration/configure_general.cpp2
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp2
-rw-r--r--src/yuzu/configuration/configure_graphics_advanced.cpp2
-rw-r--r--src/yuzu/configuration/configure_system.cpp4
6 files changed, 7 insertions, 7 deletions
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp
index 7eb752898..d32328087 100644
--- a/src/yuzu/configuration/configure_audio.cpp
+++ b/src/yuzu/configuration/configure_audio.cpp
@@ -49,7 +49,7 @@ void ConfigureAudio::Setup(const ConfigurationShared::Builder& builder) {
continue;
}
if (!widget->Valid()) {
- delete widget;
+ widget->deleteLater();
continue;
}
diff --git a/src/yuzu/configuration/configure_cpu.cpp b/src/yuzu/configuration/configure_cpu.cpp
index 8ed9a65f3..08f2b4d9c 100644
--- a/src/yuzu/configuration/configure_cpu.cpp
+++ b/src/yuzu/configuration/configure_cpu.cpp
@@ -54,7 +54,7 @@ void ConfigureCpu::Setup(const ConfigurationShared::Builder& builder) {
continue;
}
if (!widget->Valid()) {
- delete widget;
+ widget->deleteLater();
continue;
}
diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cpp
index fc43a531d..c727fadd1 100644
--- a/src/yuzu/configuration/configure_general.cpp
+++ b/src/yuzu/configuration/configure_general.cpp
@@ -48,7 +48,7 @@ void ConfigureGeneral::Setup(const ConfigurationShared::Builder& builder) {
continue;
}
if (!widget->Valid()) {
- delete widget;
+ widget->deleteLater();
continue;
}
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index a6f711597..a94fbc89a 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -246,7 +246,7 @@ void ConfigureGraphics::Setup(const ConfigurationShared::Builder& builder) {
continue;
}
if (!widget->Valid()) {
- delete widget;
+ widget->deleteLater();
continue;
}
diff --git a/src/yuzu/configuration/configure_graphics_advanced.cpp b/src/yuzu/configuration/configure_graphics_advanced.cpp
index f60214ff9..4db18673d 100644
--- a/src/yuzu/configuration/configure_graphics_advanced.cpp
+++ b/src/yuzu/configuration/configure_graphics_advanced.cpp
@@ -42,7 +42,7 @@ void ConfigureGraphicsAdvanced::Setup(const ConfigurationShared::Builder& builde
continue;
}
if (!widget->Valid()) {
- delete widget;
+ widget->deleteLater();
continue;
}
diff --git a/src/yuzu/configuration/configure_system.cpp b/src/yuzu/configuration/configure_system.cpp
index 93a0a4102..c4833f4e7 100644
--- a/src/yuzu/configuration/configure_system.cpp
+++ b/src/yuzu/configuration/configure_system.cpp
@@ -112,7 +112,7 @@ void ConfigureSystem::Setup(const ConfigurationShared::Builder& builder) {
continue;
}
if (!widget->Valid()) {
- delete widget;
+ widget->deleteLater();
continue;
}
@@ -132,7 +132,7 @@ void ConfigureSystem::Setup(const ConfigurationShared::Builder& builder) {
system_hold.emplace(setting->Id(), widget);
break;
default:
- delete widget;
+ widget->deleteLater();
}
}
for (const auto& [label, widget] : core_hold) {